<script setup>
import HelloWorld from "./components/HelloWorld.vue";
</script>

<template>
  <div>
    <router-link to="/">Go to Home(预加载)</router-link>
    <br />
    <router-link to="/about">Go to About(异步组件)</router-link>
    <br />
    <router-link to="/hello">Go to Hello(懒加载+异步组件)</router-link>
    <br />
    <router-link to="/prerender">Go to Prerender(预加载+异步组件)</router-link>

    <div>
      <!-- 路由出口 -->
      <!-- 路由匹配到的组件将渲染在这里 -->
      <router-view></router-view>
    </div>
  </div>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
